class Solution(object):
    def removeElement(self, nums, val):
        i=0
        for j in range(len(nums)):
            if nums[j] != val:
                nums[i]=nums[j]
                i+=1
        print(nums)
        return i
x=Solution()
nums = [3,2,2,3]
val=3
x.removeElement(nums,val)                
                